<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAdminTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin', function (Blueprint $table) {
            $table->engine = 'innodb';
            $table->increments('id')->unsigned();
            $table->string('account', 15)->default('')->comment('账号');
            $table->string('login_password', 255)->default('')->comment('登录密码');
            $table->unsignedTinyInteger('is_enable')->default(1)->comment('是否启用:1-是,0-否');
            $table->unsignedInteger('created_at')->default(0);
            $table->unsignedInteger('updated_at')->default(0);
        });
      
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin');
    }

}
